Follow-up r69203: remove str_replace( '_', ' ', $query ); was only needed for Special...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 21 Jul 2010 14:31:24 +0000 (14:31 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Wed, 21 Jul 2010 14:31:24 +0000 (14:31 +0000)
includes/api/ApiQuerySearch.php

index b1608fd..86ba895 100644 (file)
@@ -74,7 +74,6 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
                } elseif ( $what == 'title' ) {
                        $matches = $search->searchTitle( $query );
                } elseif ( $what == 'nearmatch' ) {
-                       $query = str_replace( '_', ' ', $query );
                        $matches = SearchEngine::getNearMatchResultSet( $query );
                } else {
                        // We default to title searches; this is a terrible legacy